package com.baidumap.administrator.happystudy.model;

import com.ab.util.AbJsonUtil;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/23 06:12
 * 邮箱：2235445233@qq.com
 */
public class CourseList {


    /**
     * code : 200
     * msg : success
     * data : {"course_id":"3","uid":"3","school":"深圳大学","section":"物理系","grade":"大一","class":"3班","state":"1","monday":[{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}],"tuesday":[{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}],"wenseday":[{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}],"thursday":[{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}],"friday":[{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]}
     */

    private String code;
    private String msg;
    private DataBean data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public CourseList(String json) {
        CourseList result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * course_id : 3
         * uid : 3
         * school : 深圳大学
         * section : 物理系
         * grade : 大一
         * class : 3班
         * state : 1
         * monday : [{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]
         * tuesday : [{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]
         * wenseday : [{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]
         * thursday : [{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]
         * friday : [{"lession":"1、2节","time":"8:00-11:00","course":"VI设计课","where":"艺术楼302"},{"lession":"3、4节","time":"14:00-17:00","course":"老泽东思想理论","where":"行政楼509"}]
         */

        private String course_id;
        private String uid;
        private String school;
        private String section;
        private String grade;
        @SerializedName("class")
        private String classX;
        private String state;
        private List<MondayBean> monday;
        private List<TuesdayBean> tuesday;
        private List<WensedayBean> wenseday;
        private List<ThursdayBean> thursday;
        private List<FridayBean> friday;

        public String getCourse_id() {
            return course_id;
        }

        public void setCourse_id(String course_id) {
            this.course_id = course_id;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getSchool() {
            return school;
        }

        public void setSchool(String school) {
            this.school = school;
        }

        public String getSection() {
            return section;
        }

        public void setSection(String section) {
            this.section = section;
        }

        public String getGrade() {
            return grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getClassX() {
            return classX;
        }

        public void setClassX(String classX) {
            this.classX = classX;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public List<MondayBean> getMonday() {
            return monday;
        }

        public void setMonday(List<MondayBean> monday) {
            this.monday = monday;
        }

        public List<TuesdayBean> getTuesday() {
            return tuesday;
        }

        public void setTuesday(List<TuesdayBean> tuesday) {
            this.tuesday = tuesday;
        }

        public List<WensedayBean> getWenseday() {
            return wenseday;
        }

        public void setWenseday(List<WensedayBean> wenseday) {
            this.wenseday = wenseday;
        }

        public List<ThursdayBean> getThursday() {
            return thursday;
        }

        public void setThursday(List<ThursdayBean> thursday) {
            this.thursday = thursday;
        }

        public List<FridayBean> getFriday() {
            return friday;
        }

        public void setFriday(List<FridayBean> friday) {
            this.friday = friday;
        }

        public static class MondayBean {
            /**
             * lession : 1、2节
             * time : 8:00-11:00
             * course : VI设计课
             * where : 艺术楼302
             */

            private String lession;
            private String time;
            private String course;
            private String where;

            public String getLession() {
                return lession;
            }

            public void setLession(String lession) {
                this.lession = lession;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public String getWhere() {
                return where;
            }

            public void setWhere(String where) {
                this.where = where;
            }
        }

        public static class TuesdayBean {
            /**
             * lession : 1、2节
             * time : 8:00-11:00
             * course : VI设计课
             * where : 艺术楼302
             */

            private String lession;
            private String time;
            private String course;
            private String where;

            public String getLession() {
                return lession;
            }

            public void setLession(String lession) {
                this.lession = lession;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public String getWhere() {
                return where;
            }

            public void setWhere(String where) {
                this.where = where;
            }
        }

        public static class WensedayBean {
            /**
             * lession : 1、2节
             * time : 8:00-11:00
             * course : VI设计课
             * where : 艺术楼302
             */

            private String lession;
            private String time;
            private String course;
            private String where;

            public String getLession() {
                return lession;
            }

            public void setLession(String lession) {
                this.lession = lession;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public String getWhere() {
                return where;
            }

            public void setWhere(String where) {
                this.where = where;
            }
        }

        public static class ThursdayBean {
            /**
             * lession : 1、2节
             * time : 8:00-11:00
             * course : VI设计课
             * where : 艺术楼302
             */

            private String lession;
            private String time;
            private String course;
            private String where;

            public String getLession() {
                return lession;
            }

            public void setLession(String lession) {
                this.lession = lession;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public String getWhere() {
                return where;
            }

            public void setWhere(String where) {
                this.where = where;
            }
        }

        public static class FridayBean {
            /**
             * lession : 1、2节
             * time : 8:00-11:00
             * course : VI设计课
             * where : 艺术楼302
             */

            private String lession;
            private String time;
            private String course;
            private String where;

            public String getLession() {
                return lession;
            }

            public void setLession(String lession) {
                this.lession = lession;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public String getWhere() {
                return where;
            }

            public void setWhere(String where) {
                this.where = where;
            }
        }
    }
}
